<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0054)http://www.jieshuwang.com/user.php?act=collection_list -->
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="model.Message"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon"href="images/head.ico"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<meta name="Keywords" content="">
			<meta name="Description" content="">

				<title>图书漂流-消息</title> <script type="text/javascript"
					src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
				<script type="text/javascript">
					$(function() {
						/* For zebra striping */
						$("table tr:nth-child(odd)").addClass("odd-row");
						/* For cell text alignment */
						$("table td:first-child, table th:first-child")
								.addClass("first");
						/* For removing the last border */
						$("table td:last-child, table th:last-child").addClass(
								"last");
					});
				</script>

				<style>
.dow {
	display: block;
	width: 202px;
	height: 52px;
	line-height: 52px;
	text-align: center;
	font-family: arial, verdana, sans-serif, '新宋体';
	font-weight: bold;
	font-size: 22px;
	background: #428bca;
	color: #fff;
	text-decoration: none;
	border: 3px solid #357ebd;
	cursor: pointer
}

.dow:hover {
	background: #1165ae;
}

.dow:active {
	background: #0d79d5;
}
</style>

				<style type="text/css">
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
	blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd,
	q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
	fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr,
	th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

body {
	margin: 0;
	padding: 0;
	font: 12px/15px "Helvetica Neue", Arial, Helvetica, sans-serif;
	color: #555;
	background: #f5f5f5 url(bg.jpg);
}

a {
	color: #666;
}

#content {
	width: 65%;
	max-width: 690px;
	margin: 6% auto 0;
}

/*
	Pretty Table Styling
	CSS Tricks also has a nice writeup: http://css-tricks.com/feature-table-design/
	*/
table {
	overflow: hidden;
	border: 1px solid #d3d3d3;
	background: #fefefe;
	width: 70%;
	margin: 5% auto 0;
	-moz-border-radius: 5px; /* FF1+ */
	-webkit-border-radius: 5px; /* Saf3-4 */
	border-radius: 5px;
	-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

th, td {
	padding: 18px 28px 18px;
	text-align: center;
}

th {
	padding-top: 22px;
	text-shadow: 1px 1px 1px #fff;
	background: #e8eaeb;
}

td {
	border-top: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
}

tr.odd-row td {
	background: #f6f6f6;
}

td.first, th.first {
	text-align: left
}

td.last {
	border-right: none;
}

/*
	Background gradients are completely unnecessary but a neat effect.
	*/
td {
	background: -moz-linear-gradient(100% 25% 90deg, #fefefe, #f9f9f9);
	background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f9f9f9),
		to(#fefefe));
}

tr.odd-row td {
	background: -moz-linear-gradient(100% 25% 90deg, #f6f6f6, #f1f1f1);
	background: -webkit-gradient(linear, 0% 0%, 0% 25%, from(#f1f1f1),
		to(#f6f6f6));
}

th {
	background: -moz-linear-gradient(100% 20% 90deg, #e8eaeb, #ededed);
	background: -webkit-gradient(linear, 0% 0%, 0% 20%, from(#ededed),
		to(#e8eaeb));
}

/*
	I know this is annoying, but we need additional styling so webkit will recognize rounded corners on background elements.
	Nice write up of this issue: http://www.onenaught.com/posts/266/css-inner-elements-breaking-border-radius
	
	And, since we've applied the background colors to td/th element because of IE, Gecko browsers also need it.
	*/
tr:first-child th.first {
	-moz-border-radius-topleft: 5px;
	-webkit-border-top-left-radius: 5px; /* Saf3-4 */
}

tr:first-child th.last {
	-moz-border-radius-topright: 5px;
	-webkit-border-top-right-radius: 5px; /* Saf3-4 */
}

tr:last-child td.first {
	-moz-border-radius-bottomleft: 5px;
	-webkit-border-bottom-left-radius: 5px; /* Saf3-4 */
}

tr:last-child td.last {
	-moz-border-radius-bottomright: 5px;
	-webkit-border-bottom-right-radius: 5px; /* Saf3-4 */
}
</style>



				
					
						<link href="./Css1/style.css" rel="stylesheet" type="text/css">

							<script type="text/javascript" src="./Js1/meilire.js"></script>
							<script type="text/javascript" src="./Js1/common.js"></script>
							<script type="text/javascript" src="./Js1/user.js"></script>
							<style type="text/css">
.float0831 {
	POSITION: fixed;
	TOP: 110px;
	RIGHT: 1px;
	_position: absolute;
	z-index: 999999;
}

.float0831 A {
	COLOR: #00a0e9
}

.float0831 A:hover {
	COLOR: #ff8100;
	TEXT-DECORATION: none
}

.float0831 .floatL {
	POSITION: relative;
	WIDTH: 28px;
	FLOAT: left
}

.float0831 .floatL A {
	TEXT-INDENT: -9999px;
	DISPLAY: block;
	FONT-SIZE: 0px
}

.float0831 .floatR {
	BACKGROUND: url(kf/float_bg.gif)
}

.float0831 .tp {
	BACKGROUND: url(kf/float_bg.gif)
}

.float0831 .cn {
	BACKGROUND: url(kf/float_bg.gif)
}

.float0831 .floatR {
	PADDING-BOTTOM: 15px;
	WIDTH: 130px;
	BACKGROUND-REPEAT: no-repeat;
	BACKGROUND-POSITION: -131px bottom;
	FLOAT: left;
	OVERFLOW: hidden
}

.float0831 .tp {
	BACKGROUND-REPEAT: no-repeat;
	BACKGROUND-POSITION: 0% 0%;
	HEIGHT: 10px
}

.float0831 .cn {
	BACKGROUND-REPEAT: repeat-y;
	BACKGROUND-POSITION: -262px 0px
}

.float0831 .cn H3 {
	TEXT-INDENT: -9999px;
	HEIGHT: 36px;
	FONT-SIZE: 0px
}

.float0831 .cn strong {
	margin-left: 25px;
}

.float0831 .cn UL {
	PADDING-BOTTOM: 0px;
	PADDING-LEFT: 10px;
	PADDING-RIGHT: 10px;
	PADDING-TOP: 0px
}

.float0831 .cn UL LI {
	BORDER-BOTTOM: #e6e5e4 1px solid;
	LINE-HEIGHT: 36px;
	HEIGHT: 36px;
	OVERFLOW: hidden;
	WORD-BREAK: normal
}

.float0831 .titZx {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .titDh {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .titDc, .float0831 .weibo {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .icoZx {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .icoTc {
	BACKGROUND: url(kf/float_s12.gif) no-repeat;
	text-indent: 10px;
}

.float0831 .icoFf {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .icoTl {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .btnOpen {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .btnOpen_n {
	BACKGROUND: url(kf/float_s12.gif) no-repeat
}

.float0831 .btnCtn {
	BACKGROUND: url(kf/float_s12.gif) no-repeat;
	cursor: hand;
}

.float0831 .cn H3.titZx {
	height: 108px;
	BACKGROUND-POSITION: 5px -517px
}

.float0831 .titDh {
	BACKGROUND-POSITION: 5px -66px
}

.float0831 .titDc {
	BACKGROUND-POSITION: 5px -124px
}

.float0831 .weibo {
	margin-top: 7px;
	BACKGROUND-POSITION: 5px -627px
}

.float0831 .icoZx {
	BACKGROUND-POSITION: 2px -154px
}

.float0831 .icoTc {
	BACKGROUND-POSITION: 0px -323px
}

.float0831 .icoFf {
	BACKGROUND-POSITION: 2px -213px
}

.float0831 .icoTl {
	PADDING-LEFT: 20px;
	DISPLAY: block;
	FONT-FAMILY: 微软雅黑;
	BACKGROUND-POSITION: 2px -266px;
	FLOAT: left
}

.float0831 .btnOpen {
	BACKGROUND-POSITION: -30px -396px
}

.float0831 .btnOpen_n {
	BACKGROUND-POSITION: 0px -530px
}

.float0831 .btnCtn {
	BACKGROUND-POSITION: 0px -396px
}

.float0831 .icoZx {
	PADDING-LEFT: 28px;
	DISPLAY: block;
	FLOAT: left
}

.float0831 .icoTc {
	PADDING-LEFT: 28px;
	DISPLAY: block;
	FLOAT: left
}

.float0831 .icoFf {
	PADDING-LEFT: 28px;
	DISPLAY: block;
	FLOAT: left
}

.float0831 .btnOpen {
	POSITION: relative;
	WIDTH: 28px;
	HEIGHT: 118px;
	TOP: 80px;
	LEFT: 2px
}

.float0831 .btnOpen_n {
	POSITION: relative;
	WIDTH: 28px;
	HEIGHT: 118px;
	TOP: 80px;
	LEFT: 2px
}

.float0831 .btnCtn {
	POSITION: relative;
	WIDTH: 28px;
	HEIGHT: 118px;
	TOP: 80px;
	LEFT: 2px;
	cursor: hand;
}

.float0831 .btnOpen {
	TOP: 118px;
	LEFT: 1px
}

.float0831 .btnOpen_n {
	TOP: 118px;
	LEFT: 1px
}

.float0831 .btnCtn {
	TOP: 118px;
	LEFT: 2px
}

.float0831 UL LI H3.titDc A, .float0831 UL LI H3.weibo A {
	WIDTH: 80px;
	DISPLAY: block;
	HEIGHT: 36px
}

.float0831 UL LI.top {
	height: 108px;
}

.float0831 UL LI.bot {
	BORDER-BOTTOM-STYLE: none
}

.float0831 UL.webZx {
	PADDING-BOTTOM: 0px;
	PADDING-LEFT: 0px;
	WIDTH: 164px;
	PADDING-RIGHT: 0px;
	BACKGROUND: url(kf/webzx_bg1.jpg) no-repeat;
	HEIGHT: 14px;
	PADDING-TOP: 0px
}

* html .float0831 {
	position: absolute;
	left: expression(eval(document.documentElement.scrollRight +0));
	top: expression(eval(document.documentElement.scrollTop +100))
}

#Fchat1 {
	display: none;
}

#Fchat2 {
	width: 29px;
	height: 117px;
	position: fixed;
	right: 0px;
	top: 210px;
	cursor: pointer;
	display: block;
	BACKGROUND: url(kf/online.gif) no-repeat;
	_position: absolute;
	_top: expression(eval(document.documentElement.scrollTop +190));
}

.bdshare-button-style0-16 a, .bdshare-button-style0-16 .bds_more {
	margin: 6px 4px 6px 0 !important;
}
</style>
							<script src="./Js1/share.js"></script>
							<link rel="stylesheet" href="./Css1/share_style0_16.css">
</head>
<body class="user_center JD_userCenter" ryt12918="1" style="zoom: 1;">







	<div id="shortcut-2013" class="pageHeaderFlow">
		<div class="w">

			<ul class="fr lh">
				<li class="fore1" id="loginbar"></li>


			</ul>
		</div>
	</div>
	<div id="o-header-2013" class="PageHeader userPageHeader">
		<div class="w" id="header-2013">
			<div id="logo-2013" class="ld">
				<a href="#" hidefocus="true"><b></b><img
					src="./Images1/logo.jpg" width="270" height="48" alt="文迪"></a>
			</div>

			<div id="search-2013">
				<div class="i-search ld">
					<ul id="shelper" class="hide"></ul>
					<div class="form">

						<input type="text" class="text" accesskey="s" id="key"
							autocomplete="off" name="keywords" value=""> <input
							type="submit" value="搜索" class="button">
					</div>
				</div>
			</div>

			<div id="ECS_CARTINFO" class="settleup-2013">
				<dl class="">
					<%
						List<Message> list = (List) session.getAttribute("message");
						int z = 0;
						for (int j = 0; j < list.size(); j++) {
							if (list.get(j).getMstatus() == 0
									|| list.get(j).getMstatus() == 2) {
								z = z + 1;
							}
						}
					%>
					<dt class="ld">
						<s></s><i></i><span class="shopping"><span
							id="shopping-amount"><%=z%></span></span><a href="#" id="settleup-url">我的消息</a>
						<b>&gt;</b>
					</dt>
					<dd>
						<div class="prompt">
							<div class="nogoods">
								<b></b>还没有消息！
							</div>
						</div>
					</dd>
				</dl>


			</div>

		</div>

	</div>

	</div>
	</div>
	</div>
	<div class="hide">
		<div class="w">

			<div class="breadcrumb">
				<a href="http://www.jieshuwang.com/">首页</a>
				<code>&gt;</code>
				用户中心
			</div>
		</div>
	</div>

	<div class="JD_userMain">
		<div class="w main">
			<div class="right">
				<div class="ordercontainer">
					<div class="userCenterBox clearfix" style="_height:1%;">








						<div class="boxCenterList">
							<h5 class="mc">
								<span>我的消息:</span>
							</h5>

							<table class="hovertable">
								<tr>

									<th>消息ID</th>
									<th>消息内容</th>
									<th colspan="2">操作</th>

								</tr>
								<%
									for (int i = 0; i < list.size(); i++) {
								%>
								<tr>
									<td><%=i + 1%></td>
									<td><%=list.get(i).getMcontent()%></td>
									<%
										if (list.get(i).getMstatus() == 0) {
									%>
									<td><input type="button" id="<%=list.get(i).getMid()%>"
										name="agree" value="同意"
										onclick="messageClick(this.id,this.name)"></td>
									<td><input type="button" id="<%=list.get(i).getMid()%>"
										name="refuse" value="拒绝"
										onclick="messageClick(this.id,this.name)"></td>
									<%
										} else if (list.get(i).getMstatus() == 1) {
									%>
									<td>已阅读</td>
									<td><input type="button" id="<%=list.get(i).getMid()%>"
										name="delete" value="删除"
										onclick="messageClick(this.id,this.name)"></td>
								</tr>
								<%
									} else if (list.get(i).getMstatus() == 2) {
								%>
								<td><input type="button" id="<%=list.get(i).getMid()%>"
									name="agree" value="了解"
									onclick="messageClick(this.id,this.name)"></td>
								<%
									} else if (list.get(i).getMstatus() == 3) {
								%>
								<td>已了解</td>
								<td><input type="button" id="<%=list.get(i).getMid()%>"
									name="delete" value="删除"
									onclick="messageClick(this.id,this.name)"></td>
								<% } 
   } %>

								<script type="text/javascript">
  	                  function messageClick(id,name){  	                  
  	                  window.location.href="http://localhost:8080/bookcrossing/MessageAction?MessageId="+id+"&MessageType="+name;
  	                  }
  	                  </script>

							</table>

							<div class="blank10"></div>

							<div class="m clearfix fanYe">

								<div class="blank0"></div>
							</div>

							<!--

function selectPage(sel)
{
  sel.form.submit();
}

//-->
							</script>
						</div>





					</div>

					<div id="myjd" class="m">
						<div class="mt">
							<h2>
								<a href="http://www.jieshuwang.com/user.html"></a>
							</h2>
						</div>
						<div class="mc">
							<dl>
								<dt>
									<b></b>
								</dt>
								<dd>
									<div class="item ">
										<a href="http://www.jieshuwang.com/user.php?act=order_list">
										</a>
									</div>


								</dd>
							</dl>

						</div>
					</div>
				</div>
				<div class="clr"></div>
			</div>
		</div>
		<div class="blank"></div>
</body>
</html>
